Search Unity

How to achieve Cloak/Distortion effect (like in N.O.V.A. 2)

Discussion in 'iOS and tvOS' started by joshuabunting, Jan 13, 2011.

  1. joshuabunting

    joshuabunting

    Joined:
    Apr 25, 2009
    Posts:
    13
    Does anyone know how to achieve the distortion effect in Unity (for iPhone) like the attached image from the new iPhone game N.O.V.A. 2?
     

    Attached Files:

  2. kofboy

    kofboy

    Joined:
    Nov 6, 2009
    Posts:
    60
    I'm also want to know how to make such effect.

    after searching the forum, it seems that we can not make such effect with unity iphone, someone say that Refraction and Reflection is unavailable in unity iphone
     
  3. theinfomercial

    theinfomercial

    Joined:
    Sep 9, 2008
    Posts:
    1,000
    Sure it's available. It's just not available for pre 3Gs devices since the shader would require OpenGL ES 2.0

    Here's a shot with a sphere that uses the glass refraction shader from the pro assets. Same type of shader. It'll run on 3Gs+ devices, but not very efficiently. You would need to write an optimized version of the shader.

    $Refraction Shot.jpg
    View attachment $Refraction Effect.zip
     
  4. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    You could use world of warcraft's method. They use a cube map or env map with transparency. Works quite well (hunter cloaking effect) and is fairly cheap as well as being fixed function compatible. It's still never going to be cheap though.

    It needs pro because of render to texture.
     
  5. kofboy

    kofboy

    Joined:
    Nov 6, 2009
    Posts:
    60
    Thanks for your demo project. I'll give it a try.

     
  6. kofboy

    kofboy

    Joined:
    Nov 6, 2009
    Posts:
    60
    I search the forum with key word 'cloaking effect' and got nothings useful.
    Can you give me more specific information on 'cube map or env map with transparency' ?
     
  7. macdude2

    macdude2

    Joined:
    Sep 22, 2010
    Posts:
    686
    Just to let you know, that effect works on my ipod touch 2g while playing NOVA 2 which does not have open GLES 2.0.
     
  8. Deleted User

    Deleted User

    Guest

    interesting! since this post i am curious about how they achieved THAT! O_O
     
  9. adam_mehman

    adam_mehman

    Joined:
    Dec 11, 2014
    Posts:
    104
    @hippocoder can you help me with the cube map cloak effect?